package com.hcj.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hcj.pojo.Category;
import com.hcj.util.MyResponse;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface CategoryMapper extends BaseMapper<Category> {
    // 根据商品类别名查询
    @Select("select * from category where name = #{name}")
    Category selectByName(String name);
    @Select("select * from category")
    List<Category> selectAll();
}
